package com.twetec.cms.model.vo.information;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.twetec.cms.model.vo.base.BaseTreeVO;
import io.swagger.annotations.ApiModelProperty;

public class WebsiteColumnTreeVO extends BaseTreeVO<WebsiteColumnTreeVO> {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "id", example = "12345646546")
    private Long id;

    @ApiModelProperty(value = "名称", example = "厦门市总工会")
    private String title;

    @ApiModelProperty(value = "排序", example = "1")
    private Integer sort;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "上级id", example = "12345646546")
    private Long pid;

    @ApiModelProperty(value = "xpath", example = "12345646546-12345646546")
    private String xpath;

    @ApiModelProperty(value = "类型 站点:WEBSITE 栏目:COLUMN", example = "WEBSITE")
    private String type;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public Integer getSort() {
        return sort;
    }

    @Override
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public Long getPid() {
        return pid;
    }

    @Override
    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getXpath() {
        return xpath;
    }

    public void setXpath(String xpath) {
        this.xpath = xpath;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "WebsiteColumnTreeVO{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", sort=" + sort +
                ", pid=" + pid +
                ", xpath='" + xpath + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
